using System;
using System.Linq;
using System.Diagnostics.Contracts;

namespace ReactiveCode.Statements
{
    class MethodCall: ReactiveStatement
    {
        public MethodCall(ReactiveMethod method)
        {
            Contract.Requires(method != null);
            method.Body.Parent = this;
            method.Body.BindEnabled(this);
        }
    }
}